window.onload=function(){
  let box =document.getElementsByClassName('box')[0]
  box.addEventListener('click',()=>{
    alert('这里是测试代码')
  })
}